package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.domain.Beds;
import com.ruoyi.business.domain.vo.BedsVo;
import com.ruoyi.business.mapper.BedsPlusMapper;
import com.ruoyi.business.service.IBedsPlusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BedsPlusServiceImpl extends ServiceImpl<BedsPlusMapper, Beds> implements IBedsPlusService {
    @Autowired
    private BedsPlusMapper bedsPlusMapper;
    @Override
    public void trueDelete(Long id) {
        bedsPlusMapper.TrueDelete(id);
    }

    @Override
    public List<BedsVo> getbedListBydormitoryid(Long dormitoryid) {
        return bedsPlusMapper.getbedListBydormitoryid(dormitoryid);
    }

    @Override
    public String getbedDetailByid(String id) {
        return bedsPlusMapper.getbedDetailByid(id);
    }

    @Override
    public List<Beds> getbedListBydormitory(String dormitoryid, String buildingname) {
        return bedsPlusMapper.getbedListBydormitory(dormitoryid, buildingname);
    }
}
